object Frm_RelExcel: TFrm_RelExcel
  Left = 256
  Top = 28
  Caption = 'Relat'#243'rio em Excel'
  ClientHeight = 636
  ClientWidth = 866
  Color = clBtnFace
  Font.Charset = DEFAULT_CHARSET
  Font.Color = clWindowText
  Font.Height = -11
  Font.Name = 'MS Sans Serif'
  Font.Style = []
  OldCreateOrder = False
  Position = poScreenCenter
  OnCreate = FormCreate
  OnShow = FormShow
  PixelsPerInch = 96
  TextHeight = 13
  object pnEditar: TPanel
    Left = 8
    Top = 8
    Width = 849
    Height = 617
    TabOrder = 0
    Visible = False
    object Label1: TLabel
      Left = 712
      Top = 456
      Width = 80
      Height = 13
      Caption = 'Ajustar Tamanho'
    end
    object lblAviso: TLabel
      Left = 8
      Top = 600
      Width = 32
      Height = 13
      Caption = 'Aviso'
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clRed
      Font.Height = -11
      Font.Name = 'MS Sans Serif'
      Font.Style = [fsBold]
      ParentFont = False
    end
    object pnJoin: TPanel
      Left = 16
      Top = 145
      Width = 833
      Height = 241
      TabOrder = 11
      Visible = False
      object DBGrid5: TDBGrid
        Left = 8
        Top = 40
        Width = 817
        Height = 193
        DataSource = DataSource5
        TabOrder = 2
        TitleFont.Charset = DEFAULT_CHARSET
        TitleFont.Color = clWindowText
        TitleFont.Height = -11
        TitleFont.Name = 'MS Sans Serif'
        TitleFont.Style = []
        Visible = False
        OnDblClick = DBGrid5DblClick
        Columns = <
          item
            Expanded = False
            FieldName = 'tabela1'
            Width = 97
            Visible = True
          end
          item
            Expanded = False
            FieldName = 'tabela2'
            Width = 129
            Visible = True
          end
          item
            Expanded = False
            FieldName = 'comando'
            Width = 542
            Visible = True
          end>
      end
      object Button5: TButton
        Left = 744
        Top = 8
        Width = 75
        Height = 25
        Caption = 'Close'
        TabOrder = 0
        OnClick = Button5Click
      end
      object DBNavigator3: TDBNavigator
        Left = 8
        Top = 8
        Width = 240
        Height = 25
        DataSource = DataSource5
        TabOrder = 1
      end
    end
    object MemoImportarExportar: TMemo
      Left = 16
      Top = 39
      Width = 673
      Height = 506
      Lines.Strings = (
        'Memo1')
      TabOrder = 12
    end
    object MemoFastReport: TMemo
      Left = 16
      Top = 145
      Width = 673
      Height = 349
      Lines.Strings = (
        'RELATORIO EM FAST REPORT')
      TabOrder = 16
      Visible = False
      WordWrap = False
    end
    object DBGrid2: TDBGrid
      Left = 16
      Top = 39
      Width = 825
      Height = 209
      DataSource = DataSource2
      TabOrder = 0
      TitleFont.Charset = DEFAULT_CHARSET
      TitleFont.Color = clWindowText
      TitleFont.Height = -11
      TitleFont.Name = 'MS Sans Serif'
      TitleFont.Style = []
      Columns = <
        item
          Expanded = False
          FieldName = 'ativo'
          Width = 20
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'estado'
          Width = 25
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'periodo1'
          Width = 26
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'periodo2'
          Width = 26
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'cidade'
          Width = 24
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'Grupo'
          Width = 102
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'SubGrupo'
          Width = 139
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'Titulo'
          Width = 237
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'PagPdf'
          PickList.Strings = (
            'Portrait'
            'Landscape')
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'colunas'
          Width = 27
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'qtd'
          Width = 24
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'tabela_temporaria'
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'codigo'
          ReadOnly = True
          Visible = True
        end>
    end
    object DBNavigator1: TDBNavigator
      Left = 18
      Top = 8
      Width = 240
      Height = 25
      DataSource = DataSource2
      TabOrder = 2
    end
    object Button1: TButton
      Left = 720
      Top = 560
      Width = 99
      Height = 25
      Caption = 'Fechar Editar'
      TabOrder = 3
      OnClick = Button1Click
    end
    object DBGrid3: TDBGrid
      Left = 16
      Top = 405
      Width = 681
      Height = 185
      DataSource = DataSource3
      TabOrder = 4
      TitleFont.Charset = DEFAULT_CHARSET
      TitleFont.Color = clWindowText
      TitleFont.Height = -11
      TitleFont.Name = 'MS Sans Serif'
      TitleFont.Style = []
      Columns = <
        item
          Expanded = False
          FieldName = 'campo'
          Width = 161
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'Titulo'
          Width = 168
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'Tamanho'
          Width = 56
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'Tipo'
          Width = 39
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'ordem'
          Width = 52
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'Totalizar'
          Width = 81
          Visible = True
        end>
    end
    object BitBtn4: TBitBtn
      Left = 712
      Top = 416
      Width = 113
      Height = 25
      Caption = 'Auto Campos'
      TabOrder = 5
      OnClick = BitBtn4Click
    end
    object DBNavigator2: TDBNavigator
      Left = 713
      Top = 520
      Width = 111
      Height = 25
      DataSource = DataSource3
      VisibleButtons = [nbDelete, nbPost, nbCancel]
      TabOrder = 6
    end
    object Button3: TButton
      Left = 752
      Top = 472
      Width = 33
      Height = 25
      Caption = '-'
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clWindowText
      Font.Height = -16
      Font.Name = 'MS Sans Serif'
      Font.Style = [fsBold]
      ParentFont = False
      TabOrder = 7
      OnClick = Button3Click
    end
    object Button4: TButton
      Left = 792
      Top = 472
      Width = 33
      Height = 25
      Caption = '+'
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clWindowText
      Font.Height = -16
      Font.Name = 'MS Sans Serif'
      Font.Style = [fsBold]
      ParentFont = False
      TabOrder = 8
      OnClick = Button4Click
    end
    object edNovoTam: TEdit
      Left = 712
      Top = 473
      Width = 33
      Height = 21
      TabOrder = 9
    end
    object BitBtn5: TBitBtn
      Left = 264
      Top = 8
      Width = 75
      Height = 25
      Caption = 'Join'
      TabOrder = 10
      OnClick = BitBtn5Click
    end
    object BitBtn6: TBitBtn
      Left = 345
      Top = 8
      Width = 75
      Height = 25
      Caption = 'Exportar'
      TabOrder = 13
      OnClick = BitBtn6Click
    end
    object BitBtn7: TBitBtn
      Left = 426
      Top = 8
      Width = 75
      Height = 25
      Caption = 'Importar'
      TabOrder = 14
      OnClick = BitBtn7Click
    end
    object BitBtn12: TBitBtn
      Left = 512
      Top = 8
      Width = 113
      Height = 25
      Caption = 'Gerar FastReport File'
      TabOrder = 15
      OnClick = BitBtn12Click
    end
    object MemoCMD: TDBMemo
      Left = 16
      Top = 254
      Width = 825
      Height = 145
      DataField = 'cmd_sql'
      DataSource = DataSource2
      TabOrder = 1
    end
  end
  object Panel1: TPanel
    Left = 8
    Top = 8
    Width = 849
    Height = 617
    TabOrder = 1
    object DBGrid1: TDBGrid
      Left = 345
      Top = 8
      Width = 488
      Height = 553
      DataSource = DataSource1
      DrawingStyle = gdsGradient
      Options = [dgTitles, dgIndicator, dgColumnResize, dgColLines, dgRowLines, dgTabs, dgRowSelect, dgAlwaysShowSelection, dgConfirmDelete, dgCancelOnExit]
      TabOrder = 0
      TitleFont.Charset = DEFAULT_CHARSET
      TitleFont.Color = clWindowText
      TitleFont.Height = -11
      TitleFont.Name = 'MS Sans Serif'
      TitleFont.Style = []
      Columns = <
        item
          Expanded = False
          FieldName = 'Titulo'
          Title.Font.Charset = DEFAULT_CHARSET
          Title.Font.Color = clWindowText
          Title.Font.Height = -11
          Title.Font.Name = 'MS Sans Serif'
          Title.Font.Style = [fsBold]
          Width = 397
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'codigo'
          Title.Caption = 'C'#243'd'
          Title.Font.Charset = DEFAULT_CHARSET
          Title.Font.Color = clWindowText
          Title.Font.Height = -11
          Title.Font.Name = 'MS Sans Serif'
          Title.Font.Style = [fsBold]
          Width = 50
          Visible = True
        end>
    end
    object BitBtn1: TBitBtn
      Left = 136
      Top = 576
      Width = 75
      Height = 25
      Caption = 'Excel (Abrir)'
      TabOrder = 1
      OnClick = BitBtn1Click
    end
    object BitBtn2: TBitBtn
      Left = 639
      Top = 576
      Width = 75
      Height = 25
      Caption = 'Fechar'
      TabOrder = 2
      OnClick = BitBtn2Click
    end
    object BitBtn3: TBitBtn
      Left = 720
      Top = 576
      Width = 75
      Height = 25
      Caption = 'PDF'
      TabOrder = 3
      Visible = False
      OnClick = BitBtn3Click
    end
    object Button2: TButton
      Left = 792
      Top = 576
      Width = 43
      Height = 25
      Caption = 'Editar'
      TabOrder = 4
      OnClick = Button1Click
    end
    object DBGrid4: TDBGrid
      Left = 8
      Top = 9
      Width = 321
      Height = 273
      BorderStyle = bsNone
      Color = clCream
      Ctl3D = True
      DataSource = DataSource4
      DrawingStyle = gdsGradient
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clWindowText
      Font.Height = -11
      Font.Name = 'MS Sans Serif'
      Font.Style = []
      Options = [dgTitles, dgColumnResize, dgColLines, dgRowLines, dgTabs, dgRowSelect, dgAlwaysShowSelection, dgConfirmDelete, dgCancelOnExit]
      ParentCtl3D = False
      ParentFont = False
      TabOrder = 5
      TitleFont.Charset = DEFAULT_CHARSET
      TitleFont.Color = clWindowText
      TitleFont.Height = -11
      TitleFont.Name = 'MS Sans Serif'
      TitleFont.Style = [fsBold]
      Columns = <
        item
          Expanded = False
          FieldName = 'grupo'
          Title.Caption = 'Grupo'
          Width = 287
          Visible = True
        end>
    end
    object DBGrid6: TDBGrid
      Left = 8
      Top = 288
      Width = 321
      Height = 273
      BorderStyle = bsNone
      Color = clCream
      Ctl3D = True
      DataSource = DataSource6
      DrawingStyle = gdsGradient
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clWindowText
      Font.Height = -11
      Font.Name = 'MS Sans Serif'
      Font.Style = []
      Options = [dgTitles, dgColumnResize, dgColLines, dgRowLines, dgTabs, dgRowSelect, dgAlwaysShowSelection, dgConfirmDelete, dgCancelOnExit]
      ParentCtl3D = False
      ParentFont = False
      TabOrder = 6
      TitleFont.Charset = DEFAULT_CHARSET
      TitleFont.Color = clWindowText
      TitleFont.Height = -11
      TitleFont.Name = 'MS Sans Serif'
      TitleFont.Style = [fsBold]
      Columns = <
        item
          Expanded = False
          FieldName = 'subgrupo'
          Title.Caption = 'SubGrupo'
          Width = 287
          Visible = True
        end>
    end
    object MemoTemp: TDBMemo
      Left = 560
      Top = 64
      Width = 185
      Height = 89
      DataField = 'cmd_sql'
      DataSource = DataSource1
      TabOrder = 7
      Visible = False
      WordWrap = False
    end
    object MemoTemp2: TDBMemo
      Left = 560
      Top = 168
      Width = 185
      Height = 89
      DataField = 'cmd_sql'
      DataSource = DataSource7
      TabOrder = 8
      Visible = False
      WordWrap = False
    end
    object BitBtn8: TBitBtn
      Left = 514
      Top = 576
      Width = 75
      Height = 25
      Caption = 'Tela'
      TabOrder = 9
      OnClick = BitBtn8Click
    end
    object BitBtn9: TBitBtn
      Left = 371
      Top = 576
      Width = 118
      Height = 25
      Caption = 'Mala Direta (Word)'
      TabOrder = 10
      OnClick = BitBtn9Click
    end
    object BitBtn10: TBitBtn
      Left = 225
      Top = 576
      Width = 125
      Height = 25
      Caption = 'Salvar Como (Excel)'
      TabOrder = 11
      OnClick = BitBtn10Click
    end
    object BitBtn11: TBitBtn
      Left = 8
      Top = 576
      Width = 97
      Height = 25
      Caption = 'Visualizar'
      TabOrder = 12
      OnClick = BitBtn11Click
    end
  end
  object QrRelatorios: TZQuery
    Connection = DM.DB_Dados
    SortedFields = 'Titulo'
    SQL.Strings = (
      'SELECT * FROM tab_rel_excel  '
      'where ativo = '#39'S'#39
      'and grupo = :grupo and subgrupo = :subgrupo'
      '')
    Params = <
      item
        DataType = ftUnknown
        Name = 'grupo'
        ParamType = ptUnknown
      end
      item
        DataType = ftUnknown
        Name = 'subgrupo'
        ParamType = ptUnknown
      end>
    IndexFieldNames = 'Titulo Asc'
    Left = 600
    Top = 176
    ParamData = <
      item
        DataType = ftUnknown
        Name = 'grupo'
        ParamType = ptUnknown
      end
      item
        DataType = ftUnknown
        Name = 'subgrupo'
        ParamType = ptUnknown
      end>
    object QrRelatorioscodigo: TLargeintField
      FieldName = 'codigo'
      Required = True
    end
    object QrRelatoriosperiodo1: TWideStringField
      FieldName = 'periodo1'
      Size = 1
    end
    object QrRelatoriosperiodo2: TWideStringField
      FieldName = 'periodo2'
      Size = 1
    end
    object QrRelatoriostransportadora: TWideStringField
      FieldName = 'transportadora'
      Size = 1
    end
    object QrRelatoriosestado: TWideStringField
      FieldName = 'estado'
      Size = 1
    end
    object QrRelatoriosTitulo: TWideStringField
      FieldName = 'Titulo'
      Size = 50
    end
    object QrRelatoriosativo: TWideStringField
      FieldName = 'ativo'
      Size = 1
    end
    object QrRelatoriosGrupo: TWideStringField
      FieldName = 'Grupo'
      Size = 30
    end
    object QrRelatoriosinad_vendedor: TWideStringField
      FieldName = 'inad_vendedor'
      Size = 1
    end
    object QrRelatoriosconf_vendedor: TWideStringField
      FieldName = 'conf_vendedor'
      Size = 1
    end
    object QrRelatoriosult_pg: TWideStringField
      FieldName = 'ult_pg'
      Size = 1
    end
    object QrRelatoriosPagPdf: TWideStringField
      FieldName = 'PagPdf'
    end
    object QrRelatoriosSubTitulo: TWideStringField
      FieldName = 'SubTitulo'
      Size = 100
    end
    object QrRelatorioscidade: TWideStringField
      FieldName = 'cidade'
      Size = 1
    end
    object QrRelatorioscolunas: TLargeintField
      FieldName = 'colunas'
    end
    object QrRelatoriosqtd: TWideStringField
      FieldName = 'qtd'
      Size = 1
    end
    object QrRelatoriostabela_temporaria: TWideStringField
      FieldName = 'tabela_temporaria'
      Size = 1
    end
    object QrRelatoriosSubGrupo: TWideStringField
      FieldName = 'SubGrupo'
      Size = 30
    end
    object QrRelatorioscmd_sql: TWideMemoField
      FieldName = 'cmd_sql'
      BlobType = ftWideMemo
    end
  end
  object DataSource1: TDataSource
    DataSet = QrRelatorios
    Left = 632
    Top = 176
  end
  object tab_rel_excel: TZTable
    Connection = DM.DB_Dados
    AfterScroll = tab_rel_excelAfterScroll
    TableName = 'tab_rel_excel'
    Left = 440
    Top = 152
    object tab_rel_excelcodigo: TLargeintField
      FieldName = 'codigo'
      Required = True
    end
    object tab_rel_excelperiodo1: TWideStringField
      FieldName = 'periodo1'
      Size = 1
    end
    object tab_rel_excelperiodo2: TWideStringField
      FieldName = 'periodo2'
      Size = 1
    end
    object tab_rel_exceltransportadora: TWideStringField
      FieldName = 'transportadora'
      Size = 1
    end
    object tab_rel_excelestado: TWideStringField
      FieldName = 'estado'
      Size = 1
    end
    object tab_rel_excelTitulo: TWideStringField
      FieldName = 'Titulo'
      Size = 50
    end
    object tab_rel_excelativo: TWideStringField
      FieldName = 'ativo'
      Size = 1
    end
    object tab_rel_excelGrupo: TWideStringField
      FieldName = 'Grupo'
      Size = 30
    end
    object tab_rel_excelinad_vendedor: TWideStringField
      FieldName = 'inad_vendedor'
      Size = 1
    end
    object tab_rel_excelconf_vendedor: TWideStringField
      FieldName = 'conf_vendedor'
      Size = 1
    end
    object tab_rel_excelult_pg: TWideStringField
      FieldName = 'ult_pg'
      Size = 1
    end
    object tab_rel_excelPagPdf: TWideStringField
      FieldName = 'PagPdf'
    end
    object tab_rel_excelSubTitulo: TWideStringField
      FieldName = 'SubTitulo'
      Size = 100
    end
    object tab_rel_excelcidade: TWideStringField
      FieldName = 'cidade'
      Size = 1
    end
    object tab_rel_excelcolunas: TLargeintField
      FieldName = 'colunas'
    end
    object tab_rel_excelqtd: TWideStringField
      FieldName = 'qtd'
      Size = 1
    end
    object tab_rel_exceltabela_temporaria: TWideStringField
      FieldName = 'tabela_temporaria'
      Size = 1
    end
    object tab_rel_excelSubGrupo: TWideStringField
      FieldName = 'SubGrupo'
      Size = 30
    end
    object tab_rel_excelcmd_sql: TWideMemoField
      FieldName = 'cmd_sql'
      BlobType = ftWideMemo
    end
  end
  object DataSource2: TDataSource
    DataSet = tab_rel_excel
    Left = 472
    Top = 152
  end
  object tab_rel_excel_itens: TZTable
    Connection = DM.DB_Dados
    TableName = 'tab_rel_excel_itens'
    MasterFields = 'codigo'
    MasterSource = DataSource2
    LinkedFields = 'cod_rel'
    Left = 440
    Top = 200
    object tab_rel_excel_itenscodigo: TLargeintField
      FieldName = 'codigo'
      Required = True
    end
    object tab_rel_excel_itenscod_rel: TIntegerField
      FieldName = 'cod_rel'
    end
    object tab_rel_excel_itenscampo: TWideStringField
      DisplayLabel = 'Campo'
      FieldName = 'campo'
      Size = 50
    end
    object tab_rel_excel_itensTitulo: TWideStringField
      DisplayLabel = 'T'#237'tulo'
      FieldName = 'Titulo'
      Size = 50
    end
    object tab_rel_excel_itensTamanho: TIntegerField
      FieldName = 'Tamanho'
    end
    object tab_rel_excel_itensTipo: TWideStringField
      FieldName = 'Tipo'
      Size = 3
    end
    object tab_rel_excel_itensordem: TLargeintField
      DisplayLabel = 'Ordem'
      FieldName = 'ordem'
    end
    object tab_rel_excel_itensExibirPDF: TWideStringField
      FieldName = 'ExibirPDF'
      Size = 1
    end
    object tab_rel_excel_itensTotalizar: TWideStringField
      DisplayLabel = 'Totalizar (C / S)'
      FieldName = 'Totalizar'
      Size = 1
    end
  end
  object DataSource3: TDataSource
    DataSet = tab_rel_excel_itens
    Left = 472
    Top = 200
  end
  object QrGrupos: TZQuery
    Connection = DM.DB_Dados
    SortedFields = 'grupo'
    AfterScroll = QrGruposAfterScroll
    SQL.Strings = (
      'SELECT distinct grupo FROM tab_rel_excel  '
      'where ativo = '#39'S'#39
      '')
    Params = <>
    IndexFieldNames = 'grupo Asc'
    Left = 600
    Top = 120
    object QrGruposgrupo: TWideStringField
      FieldName = 'grupo'
      Size = 30
    end
  end
  object DataSource4: TDataSource
    DataSet = QrGrupos
    Left = 632
    Top = 120
  end
  object tab_join: TZTable
    Connection = DM.DB_Dados
    TableName = 'tab_join'
    Left = 752
    Top = 312
    object tab_joincodigo: TLargeintField
      FieldName = 'codigo'
      Required = True
    end
    object tab_jointabela1: TWideStringField
      FieldName = 'tabela1'
      Size = 30
    end
    object tab_jointabela2: TWideStringField
      FieldName = 'tabela2'
      Size = 30
    end
    object tab_joincomando: TWideStringField
      FieldName = 'comando'
      Size = 250
    end
    object tab_joinlabel: TWideStringField
      FieldName = 'label'
      Size = 30
    end
  end
  object DataSource5: TDataSource
    DataSet = tab_join
    Left = 784
    Top = 312
  end
  object QrSubGrupo: TZQuery
    Connection = DM.DB_Dados
    SortedFields = 'subgrupo'
    AfterScroll = QrSubGrupoAfterScroll
    SQL.Strings = (
      'SELECT distinct subgrupo FROM tab_rel_excel  '
      'where ativo = '#39'S'#39' and  grupo = :grupo'
      '')
    Params = <
      item
        DataType = ftUnknown
        Name = 'grupo'
        ParamType = ptUnknown
      end>
    IndexFieldNames = 'subgrupo Asc'
    Left = 600
    Top = 64
    ParamData = <
      item
        DataType = ftUnknown
        Name = 'grupo'
        ParamType = ptUnknown
      end>
    object QrSubGruposubgrupo: TWideStringField
      FieldName = 'subgrupo'
      Size = 30
    end
  end
  object DataSource6: TDataSource
    DataSet = QrSubGrupo
    Left = 632
    Top = 64
  end
  object QrRelTemp: TZQuery
    Connection = DM.DB_Dados
    SortedFields = 'Titulo'
    SQL.Strings = (
      'SELECT * FROM tab_rel_excel  '
      'where  titulo = :titulo'
      '')
    Params = <
      item
        DataType = ftUnknown
        Name = 'titulo'
        ParamType = ptUnknown
      end>
    IndexFieldNames = 'Titulo Asc'
    Left = 720
    Top = 176
    ParamData = <
      item
        DataType = ftUnknown
        Name = 'titulo'
        ParamType = ptUnknown
      end>
    object QrRelTempcodigo: TLargeintField
      FieldName = 'codigo'
      Required = True
    end
    object QrRelTempperiodo1: TWideStringField
      FieldName = 'periodo1'
      Size = 1
    end
    object QrRelTempperiodo2: TWideStringField
      FieldName = 'periodo2'
      Size = 1
    end
    object QrRelTemptransportadora: TWideStringField
      FieldName = 'transportadora'
      Size = 1
    end
    object QrRelTempestado: TWideStringField
      FieldName = 'estado'
      Size = 1
    end
    object QrRelTempTitulo: TWideStringField
      FieldName = 'Titulo'
      Size = 50
    end
    object QrRelTempativo: TWideStringField
      FieldName = 'ativo'
      Size = 1
    end
    object QrRelTempGrupo: TWideStringField
      FieldName = 'Grupo'
      Size = 30
    end
    object QrRelTempinad_vendedor: TWideStringField
      FieldName = 'inad_vendedor'
      Size = 1
    end
    object QrRelTempconf_vendedor: TWideStringField
      FieldName = 'conf_vendedor'
      Size = 1
    end
    object QrRelTempult_pg: TWideStringField
      FieldName = 'ult_pg'
      Size = 1
    end
    object QrRelTempPagPdf: TWideStringField
      FieldName = 'PagPdf'
    end
    object QrRelTempSubTitulo: TWideStringField
      FieldName = 'SubTitulo'
      Size = 100
    end
    object QrRelTempcidade: TWideStringField
      FieldName = 'cidade'
      Size = 1
    end
    object QrRelTempcolunas: TLargeintField
      FieldName = 'colunas'
    end
    object QrRelTempqtd: TWideStringField
      FieldName = 'qtd'
      Size = 1
    end
    object QrRelTemptabela_temporaria: TWideStringField
      FieldName = 'tabela_temporaria'
      Size = 1
    end
    object QrRelTempSubGrupo: TWideStringField
      FieldName = 'SubGrupo'
      Size = 30
    end
    object QrRelTempcmd_sql: TWideMemoField
      FieldName = 'cmd_sql'
      BlobType = ftWideMemo
    end
  end
  object DataSource7: TDataSource
    DataSet = QrRelTemp
    Left = 752
    Top = 176
  end
  object OpenDialog1: TOpenDialog
    Left = 792
    Top = 96
  end
  object SaveDialog1: TSaveDialog
    Left = 792
    Top = 8
  end
  object frxDBDataset1: TfrxDBDataset
    UserName = 'frxDBDataset1'
    CloseDataSource = False
    FieldAliases.Strings = (
      'codigo=codigo'
      'Nome=Nome'
      'descricao=descricao'
      'data=data'
      'valor=valor')
    DataSet = frm_Excel.Qr_Busca
    BCDToCurrency = False
    Left = 184
    Top = 56
  end
  object frxReport1: TfrxReport
    Version = '4.12.13'
    DotMatrixReport = False
    IniFile = '\Software\Fast Reports'
    PreviewOptions.Buttons = [pbPrint, pbLoad, pbSave, pbExport, pbZoom, pbFind, pbOutline, pbPageSetup, pbTools, pbEdit, pbNavigator, pbExportQuick]
    PreviewOptions.Zoom = 1.000000000000000000
    PrintOptions.Printer = 'Default'
    PrintOptions.PrintOnSheet = 0
    ReportOptions.CreateDate = 41369.425846562500000000
    ReportOptions.LastChange = 41370.790693148150000000
    ScriptLanguage = 'PascalScript'
    ScriptText.Strings = (
      ''
      'begin'
      ''
      'end.')
    Left = 248
    Top = 56
    Datasets = <
      item
        DataSet = frxDBDataset1
        DataSetName = 'frxDBDataset1'
      end
      item
        DataSet = frxTituloRel
        DataSetName = 'frxUserDataSet1'
      end>
    Variables = <>
    Style = <>
    object Data: TfrxDataPage
      Height = 1000.000000000000000000
      Width = 1000.000000000000000000
    end
    object Page1: TfrxReportPage
      PaperWidth = 215.900000000000000000
      PaperHeight = 279.400000000000000000
      PaperSize = 1
      LeftMargin = 10.000000000000000000
      RightMargin = 10.000000000000000000
      TopMargin = 10.000000000000000000
      BottomMargin = 10.000000000000000000
      object ReportTitle1: TfrxReportTitle
        Height = 105.826840000000000000
        Top = 18.897650000000000000
        Width = 740.409927000000000000
        object Memo2: TfrxMemoView
          Left = 3.779530000000000000
          Top = 86.590600000000000000
          Width = 94.488250000000000000
          Height = 18.897650000000000000
          ShowHint = False
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -11
          Font.Name = 'Arial'
          Font.Style = [fsItalic]
          Memo.UTF8W = (
            '[(<Date>)]')
          ParentFont = False
        end
        object Memo3: TfrxMemoView
          Left = 642.520100000000000000
          Top = 86.590600000000000000
          Width = 94.488250000000000000
          Height = 18.897650000000000000
          ShowHint = False
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -11
          Font.Name = 'Arial'
          Font.Style = [fsItalic]
          HAlign = haRight
          Memo.UTF8W = (
            '[(<Page>)]')
          ParentFont = False
        end
        object Picture1: TfrxPictureView
          Left = 7.559060000000000000
          Top = 3.779530000000001000
          Width = 124.724490000000000000
          Height = 71.811070000000000000
          ShowHint = False
          DataField = 'Logo'
          DataSet = frxTituloRel
          DataSetName = 'frxUserDataSet1'
          Frame.Style = fsDashDotDot
          FileLink = 'logoRel.bmp'
          HightQuality = False
          Transparent = False
          TransparentColor = clWhite
        end
        object frxUserDataSet1Fantasia: TfrxMemoView
          Left = 7.559060000000000000
          Top = 3.779530000000001000
          Width = 725.669760000000000000
          Height = 26.456710000000000000
          ShowHint = False
          DataField = 'Fantasia'
          DataSet = frxTituloRel
          DataSetName = 'frxUserDataSet1'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -16
          Font.Name = 'Arial'
          Font.Style = [fsBold]
          HAlign = haCenter
          Memo.UTF8W = (
            '[frxUserDataSet1."Fantasia"]')
          ParentFont = False
        end
        object frxUserDataSet1Titulo: TfrxMemoView
          Left = 7.559060000000000000
          Top = 34.015770000000010000
          Width = 725.669760000000000000
          Height = 18.897650000000000000
          ShowHint = False
          DataField = 'Titulo'
          DataSet = frxTituloRel
          DataSetName = 'frxUserDataSet1'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -13
          Font.Name = 'Arial'
          Font.Style = [fsBold]
          HAlign = haCenter
          Memo.UTF8W = (
            '[frxUserDataSet1."Titulo"]')
          ParentFont = False
        end
        object frxUserDataSet1SubTitulo: TfrxMemoView
          Left = 7.559060000000000000
          Top = 55.692949999999990000
          Width = 725.669760000000000000
          Height = 18.897650000000000000
          ShowHint = False
          DataField = 'SubTitulo'
          DataSet = frxTituloRel
          DataSetName = 'frxUserDataSet1'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -13
          Font.Name = 'Arial'
          Font.Style = []
          HAlign = haCenter
          Memo.UTF8W = (
            '[frxUserDataSet1."SubTitulo"]')
          ParentFont = False
        end
      end
      object PageHeader1: TfrxPageHeader
        Height = 22.677180000000000000
        Top = 147.401670000000000000
        Width = 740.409927000000000000
        object lblLinhasFrame: TfrxMemoView
          Align = baClient
          Width = 740.409927000000000000
          Height = 22.677180000000000000
          ShowHint = False
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -11
          Font.Name = 'Arial'
          Font.Style = []
          Frame.Typ = [ftTop, ftBottom]
          ParentFont = False
        end
        object lblTitulo84: TfrxMemoView
          Top = 3.800000000000012000
          Width = 81.400000000000000000
          Height = 18.897650000000000000
          ShowHint = False
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -11
          Font.Name = 'Arial'
          Font.Style = []
          Memo.UTF8W = (
            'Data')
          ParentFont = False
        end
        object lblTitulo85: TfrxMemoView
          Left = 81.000000000000000000
          Top = 3.800000000000012000
          Width = 81.400000000000000000
          Height = 18.897650000000000000
          ShowHint = False
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -11
          Font.Name = 'Arial'
          Font.Style = []
          Memo.UTF8W = (
            'Hora')
          ParentFont = False
        end
        object lblTitulo86: TfrxMemoView
          Left = 162.000000000000000000
          Top = 3.800000000000012000
          Width = 407.000000000000000000
          Height = 18.897650000000000000
          ShowHint = False
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -11
          Font.Name = 'Arial'
          Font.Style = []
          Memo.UTF8W = (
            'Descri'#65533#65533'o')
          ParentFont = False
        end
        object lblTitulo87: TfrxMemoView
          Left = 569.000000000000000000
          Top = 3.800000000000012000
          Width = 92.500000000000000000
          Height = 18.897650000000000000
          ShowHint = False
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -11
          Font.Name = 'Arial'
          Font.Style = []
          Memo.UTF8W = (
            'Entrada')
          ParentFont = False
        end
        object lblTitulo88: TfrxMemoView
          Left = 661.000000000000000000
          Top = 3.800000000000012000
          Width = 92.500000000000000000
          Height = 18.897650000000000000
          ShowHint = False
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -11
          Font.Name = 'Arial'
          Font.Style = []
          Memo.UTF8W = (
            'Sa'#65533#237'da'
            #225#233#237#243#250
            #227#245
            #226#234#238#244#251#218
            #224#232#236#242#249
            #193#201#205#211#218
            #195#213
            #192
            #199#231)
          ParentFont = False
        end
      end
      object MasterData1: TfrxMasterData
        Height = 22.677180000000000000
        Top = 230.551330000000000000
        Width = 740.409927000000000000
        DataSet = frxDBDataset1
        DataSetName = 'frxDBDataset1'
        RowCount = 0
        object lblDados84: TfrxMemoView
          Top = 3.779529999999994000
          Width = 81.400000000000000000
          Height = 18.897650000000000000
          ShowHint = False
          DataSet = frxDBDataset1
          DataSetName = 'frxDBDataset1'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -11
          Font.Name = 'Arial'
          Font.Style = []
          Memo.UTF8W = (
            '[frxDBDataset1."data"]')
          ParentFont = False
        end
        object lblDados85: TfrxMemoView
          Left = 81.000000000000000000
          Top = 3.779529999999994000
          Width = 81.400000000000000000
          Height = 18.897650000000000000
          ShowHint = False
          DataSet = frxDBDataset1
          DataSetName = 'frxDBDataset1'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -11
          Font.Name = 'Arial'
          Font.Style = []
          Memo.UTF8W = (
            '[frxDBDataset1."hora"]')
          ParentFont = False
        end
        object lblDados86: TfrxMemoView
          Left = 162.000000000000000000
          Top = 3.779529999999994000
          Width = 407.000000000000000000
          Height = 18.897650000000000000
          ShowHint = False
          DataSet = frxDBDataset1
          DataSetName = 'frxDBDataset1'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -11
          Font.Name = 'Arial'
          Font.Style = []
          Memo.UTF8W = (
            '[frxDBDataset1."descricao"]')
          ParentFont = False
        end
        object lblDados87: TfrxMemoView
          Left = 569.000000000000000000
          Top = 3.779529999999994000
          Width = 92.500000000000000000
          Height = 18.897650000000000000
          ShowHint = False
          DataSet = frxDBDataset1
          DataSetName = 'frxDBDataset1'
          DisplayFormat.DecimalSeparator = ','
          DisplayFormat.ThousandSeparator = '.'
          DisplayFormat.FormatStr = '#,##0.00'
          DisplayFormat.Kind = fkNumeric
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -11
          Font.Name = 'Arial'
          Font.Style = []
          Memo.UTF8W = (
            '[frxDBDataset1."valor_entrada"]')
          ParentFont = False
        end
        object lblDados88: TfrxMemoView
          Left = 661.000000000000000000
          Top = 3.779529999999994000
          Width = 92.500000000000000000
          Height = 18.897650000000000000
          ShowHint = False
          DataSet = frxDBDataset1
          DataSetName = 'frxDBDataset1'
          DisplayFormat.DecimalSeparator = ','
          DisplayFormat.ThousandSeparator = '.'
          DisplayFormat.FormatStr = '#,##0.00'
          DisplayFormat.Kind = fkNumeric
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -11
          Font.Name = 'Arial'
          Font.Style = []
          Memo.UTF8W = (
            '[frxDBDataset1."valor_saida"]')
          ParentFont = False
        end
      end
      object ReportSummary1: TfrxReportSummary
        Height = 49.133890000000000000
        Top = 313.700990000000000000
        Width = 740.409927000000000000
        object MemoLinhaTopSumary: TfrxMemoView
          Align = baWidth
          Top = 2.779530000000022000
          Width = 740.409927000000000000
          Height = 7.559060000000000000
          ShowHint = False
          Frame.Typ = [ftTop]
        end
      end
    end
  end
  object frxTituloRel: TfrxUserDataSet
    UserName = 'frxUserDataSet1'
    OnCheckEOF = frxTituloRelCheckEOF
    Fields.Strings = (
      'Fantasia'
      'Titulo'
      'SubTitulo'
      'Logo')
    OnGetValue = frxTituloRelGetValue
    Left = 184
    Top = 104
  end
  object frxPDFExport1: TfrxPDFExport
    UseFileCache = True
    ShowProgress = True
    OverwritePrompt = False
    DataOnly = False
    PrintOptimized = False
    Outline = False
    Background = False
    HTMLTags = True
    Author = 'FastReport'
    Subject = 'FastReport PDF export'
    ProtectionFlags = [ePrint, eModify, eCopy, eAnnot]
    HideToolbar = False
    HideMenubar = False
    HideWindowUI = False
    FitWindow = False
    CenterWindow = False
    PrintScaling = False
    Left = 312
    Top = 104
  end
  object frxHTMLExport1: TfrxHTMLExport
    UseFileCache = True
    ShowProgress = True
    OverwritePrompt = False
    DataOnly = False
    FixedWidth = True
    Background = False
    Centered = False
    EmptyLines = True
    Print = False
    PictureType = gpPNG
    Left = 312
    Top = 56
  end
  object frxRTFExport1: TfrxRTFExport
    UseFileCache = True
    ShowProgress = True
    OverwritePrompt = False
    DataOnly = False
    PictureType = gpPNG
    Wysiwyg = True
    Creator = 'FastReport'
    SuppressPageHeadersFooters = False
    HeaderFooterMode = hfText
    AutoSize = False
    Left = 312
    Top = 152
  end
  object frxCSVExport1: TfrxCSVExport
    UseFileCache = True
    ShowProgress = True
    OverwritePrompt = False
    DataOnly = False
    Separator = ';'
    OEMCodepage = False
    NoSysSymbols = True
    ForcedQuotes = False
    Left = 312
    Top = 200
  end
  object frxJPEGExport1: TfrxJPEGExport
    UseFileCache = True
    ShowProgress = True
    OverwritePrompt = False
    DataOnly = False
    Left = 312
    Top = 256
  end
  object frxBMPExport1: TfrxBMPExport
    UseFileCache = True
    ShowProgress = True
    OverwritePrompt = False
    DataOnly = False
    Left = 312
    Top = 304
  end
  object frxSimpleTextExport1: TfrxSimpleTextExport
    UseFileCache = True
    ShowProgress = True
    OverwritePrompt = False
    DataOnly = False
    Frames = False
    EmptyLines = False
    OEMCodepage = False
    DeleteEmptyColumns = True
    Left = 312
    Top = 352
  end
end
